//
//  ViewController.m
//  单例
//
//  Created by I Do Believe on 15/11/26.
//  Copyright © 2015年 apple11. All rights reserved.
//

#import "ViewController.h"
#import "NetworkTool.h"
#import "单例-Swift.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    //创建OC单例
//    NetworkTool *tool = [NetworkTool sharedInstance];
//        NSLog(@"tool:%@",tool);
    //创建swift单例
    SoundTool *tool = [SoundTool sharedInstance];
           NSLog(@"tool:%@",tool);

}

@end
